<template>
<div>
  <MyNav>我的订阅专栏</MyNav>
  <div class="attendList">
    <div class="collect" v-for="(item,index) in list" :key="index">
   <router-link to='/indexView' style="color: black">
      <p>{{item.name}}</p>
      </router-link>

    </div>
  </div>

</div>
</template>

<script>
import MyNav from "@/components/MyNav";
import {getsubscribeList} from "@/api/http";
export default {
name: "MyAttend",
  components:{
    MyNav
  },
  data(){
  return {
    list:[]
  }
  },
  created() {
    getsubscribeList().then(res=>{
      console.log(res)
      this.list=res.rows;
    })
  }
}
</script>

<style scoped lang="less">

.attendList{
    .collect {
      border-bottom: 1px solid #eee;
      background-color:#c4dae6;
      /deep/p{
        margin-top: 0;
        //margin-bottom: 0;
        padding: 10px 0 0 20px;
        //padding-left: 10px;
        font-size: 16px;
      }
    }
  }

</style>